package guiservice.server.controls;

import javax.swing.*;
import java.awt.*;

public class Label extends Control implements guiservice.common.controls.Label {

    private JLabel label;

    public Label(long id, long owner) {
        super(id, owner, guiservice.common.controls.Label.class.getCanonicalName());
        label = new JLabel();
    }

    protected Component getComponent() {
        return label;
    }

    @Override
    public String getText() {
        return label.getText();
    }

    @Override
    public void setText(String text) {
        label.setText(text);
    }

}
